import request  from "@/utils/request";

export const getFileList = async (page:number,pageSize:number , originalname?:string,type?:string) => {
    return await request.get('http://111.67.198.176:8103/api/file',{
        params:{
            page:page,
            pageSize:pageSize,
            originalname:originalname,
            type:type
        }
    })

}

//删除文件
export const deleteFileList = async (id:string,data:any) => {
   return await request.delete(`http://111.67.198.176:8103/api/file/${id}` , {data:data})
}